import { UpdateDate, CreateDate, Entity, Boolean, Title, PrimaryUuid, SysTagType, DisplayOrder, Desc } from '@sker/core'
/**
 * 系统标签
 */
@Entity({
    name: 'sys_tag'
})
export class SysTag {
    static title: string = `系统标签`;
    static resource: string = `sys_tag`;

    @PrimaryUuid({
        comment: '标签编号',
        primaryKeyConstraintName: "PK_SYS_TAG_ID"
    })
    id!: string;

    @Title({ comment: '标签名', label: '标签名' })
    title!: string;

    @Desc({ label: '备注', nullable: true })
    desc!: string;

    @SysTagType({ comment: '用途' })
    type!: string;

    @Boolean({ comment: '推荐', default: false })
    is_feed!: boolean;

    @DisplayOrder()
    display_order: number;

    @CreateDate({
        comment: '创建日期'
    })
    create_date!: Date;

    @UpdateDate({
        comment: '更新日期'
    })
    update_date!: Date;
}